/**
 * 消息项
 *
 * @author chitanda
 * @date 2021-06-23 11:06:44
 * @export
 * @class TerminalMessageItem
 */
export class TerminalMessageItem {
  /**
   * Creates an instance of TerminalMessageItem.
   * @author chitanda
   * @date 2021-06-23 11:06:46
   * @param {string} msg 消息
   * @param {string} [type='默认'] 消息类型
   * @param {('default' | 'ln' | 'progress')} [writeMode='default'] 是否自动换行
   */
  constructor(
    public msg: string,
    public type: string = '默认',
    public writeMode: 'default' | 'ln' | 'progress' = 'default',
  ) {}
}
